/**
 * @author Sheneyan
 */
window.onload = function(){
	var t = document.body.innerHTML;
	var d = window.dialogArguments;
	t = t.replace(/{@([^}].*?)}/g,function(a,b,c){
		var v = "";
		try{
			v = eval("window.dialogArguments."+b);
			if (v==undefined)v='&nbsp;'
		}
		catch(e){}
		return v;
	});
	document.body.innerHTML = t;
}
function update(o){
	var ins = document.getElementsByTagName('input');
	for (var i = 0 ; i < ins.length ; i ++){
		if (ins[i].oid){
			eval("o."+ins[i].oid+"=ins[i].value");
		}
	}
	return o;
}